package com.sise.parkinglot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author ZJ
 */
@Data
@Accessors(chain = true)
public class Recharge implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 1用户充值 2管理员充值
     */
    private Integer source;

    /**
     * 充值金额
     */
    private BigDecimal recharge;

    /**
     * 消息
     */
    private String msg;

    /**
     * 充值时间
     */
    private LocalDateTime createTime;


}
